package com.example.shiwuyouproject.ui.fragment.my.activity.viewmodel

import androidx.lifecycle.MutableLiveData
import com.example.shiwuyouproject.base.BaseViewModel
import com.example.shiwuyouproject.ui.fragment.my.activity.bean.MyApplicationBean

class MyAppLicationViewModel:BaseViewModel() {
    private val loginRepository by lazy { RetrofitClient.getApiService() }
    val getGenRenStatus = MutableLiveData<MutableList<MyApplicationBean>>()
    fun getApplyrLists(page:String){
        launch(
            block = {
                val codeStatus = loginRepository.getApplyrLists(page)
                getGenRenStatus.value=codeStatus.result().data.data
            },
            error = {

            },
            cancel = {

            },
            showErrorToast = false
        )
    }
}